package com.training.java.core.unittest;

import junit.framework.TestCase;

import org.junit.Test;

public class CalculatorTest {

	@Test
	public void testAdd(){
		Calculator calcu = new Calculator();
		int result = calcu.add(2, 3);
		
		TestCase.assertEquals(5, result);
		
		//System.out.println("Result = " + result); we can remove this and run it in junit.
	}
		@Test
		public void testSub(){
			
			Calculator calcu = new Calculator();
			int result = calcu.subtract(35, 20);
			TestCase.assertEquals(15, result);
		}
		
		
	@Test
	public void testMultiply(){
		
		Calculator calcu = new Calculator();
		int result = calcu.multiply(5,6);
		
		TestCase.assertEquals(30, result);
		
	}
		
		
	}

	
	
	
	

